package com.tiancan.design.code.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/** @author tiancan */
@FeignClient(
    value = "login-service-message",
    fallback = SendServiceFeignFallBack.class,
    path = "/email")
public interface SendServiceFeignClient {
  @PostMapping("/{email}/{code}")
  public boolean sendEmail(@PathVariable("email") String email, @PathVariable("code") String code);
}
